package com.zh.test.Steam;

import lombok.Data;

@Data
public class Person {
    String name;
    String zhiwei;
    int age;
    String sex;
    String peek;
    public  Person(){}
    public Person (String name,String zhiwei,String sex,int age){
        this.name = name;
        this.zhiwei = zhiwei;
        this.sex = sex;
        this.age = age;

    }
    public static void show (String zhiwei){
        System.out.println(zhiwei );
    }

    public String getOne(){
        this.name = this.name +"_测试";
        return this.name;
    }
    public Person returnSelf(){
        this.peek = "peek";
        return  this;
    }
    /**
     * 重写 hash码获取方式,如果不重写,默认是根据内存地址进行转码
     * */
    @Override
    public int hashCode() {
        return super.hashCode();
    }


}
